 package net.go176.backpack.core;
 
 import java.io.File;

 import net.go176.backpack.api.IGUIHelper;
 import net.go176.backpack.util.DataUtil;
 import net.go176.backpack.Backpack;
 import net.go176.backpack.gui.InventoryType;

 public abstract class MyDataHandlerGUI
   extends MyDataHandler
   implements IGUIHelper {
   public MyDataHandlerGUI(Backpack plugin) {
     super(plugin);
   }
 
   
   public abstract InventoryType getInventoryType();
   
   public DataType getDataType() {
     return (getInventoryType()).dataType;
   }
 
   
   public File getGUIDataFile(String link, String playerName, boolean mkdirs) {
     String link1 = this.cfgMan.getWorldLink(this.cfgMan.getLogoutWorld(playerName));
     if (link.equals(link1)) {
       File folder = new File(legacy ? DataUtil.getDataFolderOld() : DataUtil.getDataFolder(), (getDataType()).sourceFolderName);
      if (mkdirs && (!folder.exists() || !folder.isDirectory()))
         folder.mkdirs(); 
       return new File(folder, String.valueOf(playerName) + (getDataType()).extension);
     } 
     return getDataFile(link, playerName, mkdirs);
   }
 }


/* Location:              D:\User\Xuan\Downloads\MyBackpack1.2.5.jar!\net\saralab\mybackpack\core\MyDataHandlerGUI.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.1.3
 */